package controller

import (
	"fmt"
	"gin-admin/model"
	"time"
)

//GetUserList 获取用户列表，返回User 切片 和 错误类型
func GetUserList(page, pageSize int, name string) (model.JSONList, error) {
	fmt.Println("page=", page)
	fmt.Println("pageSize=", pageSize)
	fmt.Println("name=", name)
	list := []model.User{
		{1, "张三", "aaaa", "13879876789", time.Now(), time.Now()},
		{2, "张三", "aaaa", "13879876789", time.Now(), time.Now()},
		{3, "张三", "aaaa", "13879876789", time.Now(), time.Now()},
		{4, "张三", "aaaa", "13879876789", time.Now(), time.Now()},
	}
	jList := model.JSONList{
		Count: 4,
		List:  list,
	}
	return jList, nil
}
